﻿namespace Sidvall.IdentityManager.Data.ConfigModel
{
    public sealed partial class GenericEntityFacade : global::Sidvall.IdentityManager.Data.ConfigModel.EntityFacadeBase
    {
        #region Public Members

        #region UserConfigurationManager

        private global::Sidvall.IdentityManager.Data.ConfigModel.EntityManagers.UserConfigurationManager<global::Sidvall.IdentityManager.Data.IUserConfiguration, Sidvall.Data.IDataRowProvider<global::Sidvall.IdentityManager.Data.IUserConfiguration>> _UserConfigurationManager;
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
        public global::Sidvall.IdentityManager.Data.ConfigModel.EntityManagers.UserConfigurationManager<global::Sidvall.IdentityManager.Data.IUserConfiguration, Sidvall.Data.IDataRowProvider<global::Sidvall.IdentityManager.Data.IUserConfiguration>> UserConfigurationManager
        {
            get
            {
                return _UserConfigurationManager;
            }
            private set
            {
                _UserConfigurationManager = value;
            }
        }

        #endregion
        #region ServerItemManager

        private global::Sidvall.IdentityManager.Data.ConfigModel.EntityManagers.ServerItemManager<global::Sidvall.IdentityManager.Data.IServerItem, Sidvall.Data.IDataRowProvider<global::Sidvall.IdentityManager.Data.IServerItem>> _ServerItemManager;
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
        public global::Sidvall.IdentityManager.Data.ConfigModel.EntityManagers.ServerItemManager<global::Sidvall.IdentityManager.Data.IServerItem, Sidvall.Data.IDataRowProvider<global::Sidvall.IdentityManager.Data.IServerItem>> ServerItemManager
        {
            get
            {
                return _ServerItemManager;
            }
            private set
            {
                _ServerItemManager = value;
            }
        }

        #endregion
        #region PluginManager

        private global::Sidvall.IdentityManager.Data.ConfigModel.EntityManagers.PluginManager<global::Sidvall.IdentityManager.Data.IPlugin, Sidvall.Data.IDataRowProvider<global::Sidvall.IdentityManager.Data.IPlugin>> _PluginManager;
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
        public global::Sidvall.IdentityManager.Data.ConfigModel.EntityManagers.PluginManager<global::Sidvall.IdentityManager.Data.IPlugin, Sidvall.Data.IDataRowProvider<global::Sidvall.IdentityManager.Data.IPlugin>> PluginManager
        {
            get
            {
                return _PluginManager;
            }
            private set
            {
                _PluginManager = value;
            }
        }

        #endregion
        
        #endregion
        #region Helper Members

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
        private void Init()
        {
            this.UserConfigurationManager = new global::Sidvall.IdentityManager.Data.ConfigModel.EntityManagers.UserConfigurationManager<global::Sidvall.IdentityManager.Data.IUserConfiguration, Sidvall.Data.IDataRowProvider<global::Sidvall.IdentityManager.Data.IUserConfiguration>>(this);
            this.ServerItemManager = new global::Sidvall.IdentityManager.Data.ConfigModel.EntityManagers.ServerItemManager<global::Sidvall.IdentityManager.Data.IServerItem, Sidvall.Data.IDataRowProvider<global::Sidvall.IdentityManager.Data.IServerItem>>(this);
            this.PluginManager = new global::Sidvall.IdentityManager.Data.ConfigModel.EntityManagers.PluginManager<global::Sidvall.IdentityManager.Data.IPlugin, Sidvall.Data.IDataRowProvider<global::Sidvall.IdentityManager.Data.IPlugin>>(this);
        }

        #endregion
        #region Constructors

        public GenericEntityFacade(global::Sidvall.Data.IResourceFactory resourceFactory)
            : base(resourceFactory)
        {
            Init();
        }
        public GenericEntityFacade(global::Sidvall.IdentityManager.Data.ConfigModel.IEntityFacadeManager entityFacadeManager)
            : base(entityFacadeManager)
        {
            Init();
        }

        #endregion
    }
}